//
//  CCYEssenceViewController.m
//  模拟-百思不得姐
//
//  Created by 程春玉 on 16/8/1.
//  Copyright © 2016年 chunyu. All rights reserved.
//

#import "CCYEssenceViewController.h"
#import "CCYWelcomeView.h"

@interface CCYEssenceViewController ()

@end

@implementation CCYEssenceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:@"MainTagSubIcon" selectImage:@"MainTagSubIconClick" target:self action:@selector(btnClick)];
    self.view.backgroundColor = XMGVColor;
    CCYWelcomeView *welcome = [[CCYWelcomeView alloc] init];
    welcome.frame = self.view.bounds;
    [self.view addSubview:welcome];
    // Do any additional setup after loading the view.
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    UIViewController *v = [[UIViewController alloc] init];
    v.view.backgroundColor = [UIColor redColor];
    [self.navigationController pushViewController:v animated:YES];
}

- (void)btnClick
{
    XMGLogFunc;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
